package com.ns.school.common.constant;

import com.ns.school.common.utils.Md5Util;

/**
 * 常量
 *
 * @author Spark
 */
public class StaticVar extends StaticVarY {

    public static final int LIMIT_2K = 2000;// 2K分页

    public static final long MAX_TIME = 20991231235959L;// 最大的14位时间(卡蜜系统)
    public static final int ONE_HUNDRED_MILLION = 100000000;// 1亿
    public static final int TEN_THOUSAND = 10000;// 1万

    public static final String TEMP_FILE = "/soft/temp/";// 临时文件夹
    public static final String SYS_TEMP = "/tmp/";// 临时文件夹
    public static final String DEF_PWD = "88888888";// 默认密码
    public static final String DEF_PWD_S = Md5Util.getMD5(DEF_PWD);// 默认密码
    public static final String MONEY_UNIT = "￥";// 金额单位

    /**
     * 文件类型
     **/
    public static final int VIEW_TYPE_XLS = 0;// xls
    public static final int VIEW_TYPE_DOC = 1;// doc
    public static final int VIEW_TYPE_PPT = 2;// ppt
    public static final int VIEW_TYPE_VIDEO = 3;// video

    /**
     * 请求状态码
     **/
    public static final int STATUS_CODE_SUCCESS = 200;
    public static final int STATUS_CODE_ERROR = 300;

    /**
     * 状态
     */
    public static final String SUCCESS = "SUCCESS";
    public static final String OK = "OK";

    /**
     * 其他
     */
    public static final int YES = 1;
    public static final int NO = 0;
    public static final String SYSTEM_CHARSET = "UTF-8";
    public static final String UTF8 = SYSTEM_CHARSET;
    public static final String PARAMS_NULL_VALUE = "NULL";
    public static final String LOGIN = "login";
    public static final String COOKIE_NAME = "cookieName";
    public static final String WX = "wx";
    public static final String ZERO = "0";
    public static final String ACCESS_TOKEN_INVALID = "40001";
    public static final String SUPER_CODE = "666666";// 超级验证码
    public static final String DEFALUT_PWD = "88888888";

    /**
     * 是-否
     **/
    public static final String CPUBLIC_Y = "Y";
    public static final String CPUBLIC_N = "N";

    /**
     * ajax请求头信息
     */
    public static final String AJAX_ACCEPT_CONTENT_TYPE = "text/html;type=ajax";
    public static final String AJAX_ACCEPT_JSON_TYPE = "application/json";

    /**
     * 请求头信息
     */
    public static final String ACCEPT = "Accept";
    public static final String USER_TOKEN = "user-token";
    public static final String DEVICE_SYS = "device-sys";
    public static final String DEVICE_IMEI = "device-imei";
    public static final String APP_VERSION_NAME = "app-version-name";
    public static final String APP_VERSION_CODE = "app-version-code";

    /**
     * 常见符号
     **/
    public static final String EMPTY = "";
    public static final String SPACE = " ";
    public static final String BANG = "!";
    public static final String QUESTION_MARK = "?";
    public static final String COMMA = ",";
    public static final String POINT = ".";
    public static final String COLON = ":";
    public static final String SEMICOLON = ";";
    public static final String QUOTE = "'";
    public static final String SINGLE_QUOTE = "'";
    public static final String DOUBLE_QUOTE = "\"";
    public static final String STAR = "*";
    public static final String PLUS = "+";
    public static final String DASH = "-";
    public static final String EQUAL = "=";
    public static final String SLASH = "/";
    public static final String BACK_SLASH = "\\";
    public static final String PIPE = "|";
    public static final String UNDERLINE = "_";
    public static final String DOLOR = "$";
    public static final String AT = "@";
    public static final String CROSS_HATCH = "#";
    public static final String CROSS_HATCH2 = "##";
    public static final String PERCENT = "%";
    public static final String AND = "&";
    public static final String CIRCUMFLEX = "^";
    public static final String TILDE = "~";
    public static final String LEFT_BRACE = "{";
    public static final String RIGHT_BRACE = "}";
    public static final String LEFT_BRACKET = "[";
    public static final String RIGHT_BRACKET = "]";
    public static final String LEFT_ANGLE_BRACKET = "<";
    public static final String LEFT_ANGLE_BRACKET2 = "&#62;";
    public static final String RIGHT_ANGLE_BRACKET = ">";
    public static final String RIGHT_ANGLE_BRACKET2 = "&#60;";
    public static final String LEFT_PARENTHESES = "(";
    public static final String RIGHT_PARENTHESES = ")";
    public static final String LINE_CHANGE_SYMBOL = "\n";
    public static final String ENTER_SYMBOL = "\r";
    public static final String CH_PAUSE = "、";

    public static final String WX_SEMICOLON = ";";
    public static final String WX_COLON = ":";

    /**
     * 文件后缀
     **/
    public static final String CLASSPATH_PREFIX = "classpath:";
    public static final String PROPERTIES_SUFFIX = ".properties";
    public static final String CLASS_SUFFIX = ".class";
    public static final String TXT_SUFFIX = ".txt";
    public static final String CSV_SUFFIX = ".csv";

}
